package com.atguigu.crowd.service;

import com.atguigu.entity.Admin;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface AdminService {
    void saveAdmin(Admin admin);

    List<Admin> getAll();


    Admin getAdminByLoginAcct(String loginAcct, String userPwd);

    PageInfo<Admin> getPageInfo(String keyWord,Integer pageNum,Integer pageLimit);

    void removeAdminById(Integer id);


    Admin getAdminById(Integer id);

    void updateAdminById(Admin admin);

    void saveAdminRoleRelationship(Integer adminId, List<Integer> roleIdList);

    Admin getAdminByLoginAcct(String username);
}
